<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<table>
	<logic:empty name="roles">
		<tr>
			<td>尚未定义任何角色。</td>
		</tr>
	</logic:empty>
	<logic:notEmpty name="roles">
		<tr>
			<td>序号</td>
			<td>角色名</td>
			<td>描述信息</td>
			<td>修改</td>
			<td>删除</td>
		</tr>
		<logic:iterate id="role" name="roles">
			<tr>
				<td><bean:write name="role" property="id" /></td>
				<td><bean:write name="role" property="name" /></td>
				<td><bean:write name="role" property="description" /></td>
				<td><html:link  page="/role.do?method=edit" paramId="id" paramName="role" paramProperty="id">修改</html:link></td>
				<td><html:link page="/role.do?method=delete" paramId="id" paramName="role" paramProperty="id">删除</html:link></td>
			</tr>
		</logic:iterate>
	</logic:notEmpty>
</table>